package com.example.teamilkmall.service;

import com.example.teamilkmall.entity.Account;
import com.example.teamilkmall.entity.AdminInfo;
import com.example.teamilkmall.entity.TeaInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminInfoService {
    PageInfo<AdminInfo> listAdmin(Integer pageSize, Integer pageNum, String name);

    List<AdminInfo> listAdminInfoAll();
    void updateAdmin(AdminInfo adminInfo);

    void deloneAdmin(Integer id);

    void addAdmin(AdminInfo adminInfo);

    /**
     * 登录
     * @param adminInfo
     * @return
     */
    AdminInfo auto(AdminInfo adminInfo);
}
